import {http} from "@/utils/request.js"

// 获取收藏列表
export const getFavoriteList = () => {
	return http({
		url: '/favorite/list',
		method: 'GET'
	})
}

// 删除收藏
export const deleteFavorite = (id) => {
	return http({
		url: '/favorite/delete',
		method: 'DELETE',
		data: {
			id
		}
	})
}